home *** CD-ROM | disk | FTP | other *** search
- Path: news.iag.net!news
- From: jatmon@iag.net (John R Buchan)
- Newsgroups: comp.lang.c
- Subject: Re: c help request
- Date: 14 Jan 1996 19:28:18 GMT
- Organization: Internet Access Group, Orlando, Florida
- Message-ID: <4dblgi$47c@news.iag.net>
- References: <4d775l$h93@ccshst05.cs.uoguelph.ca>
- NNTP-Posting-Host: pm3-orl13.iag.net
- X-Newsreader: WinVN 0.99.7
-
- In article <4d775l$h93@ccshst05.cs.uoguelph.ca>, ttsuchid@uoguelph.ca says...
-
- <snip ##*%$# news server policy!!>
- >I'm using the c compiler that comes with HP-UX 9.x (9.1 I think)
- >
- >(in chkmail.c, mm_list and mm_lsub are dummy prototype declarations.)
- >
- >I get the below errors when I compile.
- >-------------------------------
- >~/CCS/toys/chkmail > make
- >cc -Aa -I../imap-4/c-client `cat ../imap-4/c-client/CFLAGS` -c chkmail.c
- >cc: "chkmail.c", line 132: error 1711: Inconsistent parameter list
- >declaration for "mm_list".
-
- <snip ##*%$# news server policy!!>
- >Here all the mm_list references to see if you can detect a pattern:
- >--------------------------------
- >~/CCS/toys/imap-4/c-client > grep -n mm_list *.h
- >mail.h:81:/* Bits for mm_list() and mm_lsub() */
- >mail.h:791:void mm_list (); <-------------- this looks suspect but
- > I haven't take a close look
- >yet.
-
- <Note: I am assuming that the HP-UX 9.x compiler is ansi compliant.>
-
- Yes, this should be the source of your problems. Since you are not
- specifying parameters, the number and types of parameters passed in the first
- call will be assumed correct. If the first call is:
-
- mm_list (stream,'.',name,LATT_NOSELECT);
-
- <I'll assume stream was defined as a MAILSTREAM pointer, name as char pointer
- and LATT_NOSELECT as 0>
- The parameters might look like:
-
- mm_list (MAILSTREAM *, int, char *, int);
-
- Anyway, just change the prototype in your header to match the function
- definition and be sure to include the header in any file that calls mm_list:
-
- void mm_list (MAILSTREAM *stream,char delimiter,char *name,long attributes);
-
-
- --
- John R Buchan -:|:- Looking for that elusive FAQ? ftp to:
- jatmon@mail.iag.net -:|:- rtfm.mit.edu /pub/usenet-by-group/....
-
-